package com.example.member.api.feign.fallback;

import com.example.member.api.entity.Member;
import com.example.member.api.feign.MemberService;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author 章侠杰
 */
@Slf4j
@Component
public class MemberServiceFallbackImpl implements MemberService {

    @Setter
    private Throwable cause;

    @Override
    public Member getMmeberInfo(String username) {
        log.error("feign username查询用户信息失败:{}", username, cause);
        return null;
    }
}
